package cn.xopencode.securityservice.rpc.violate.dto;

import cn.xopencode.common.framework.vo.PageParam;
import cn.xopencode.common.framework.vo.SortingField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
* 反三违及事故情况分页 Request DTO
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ViolatePageReqDTO extends PageParam {
    public static final SortingField FINDTIME_ASC = new SortingField("find_time", "asc");
    public static final SortingField FINDTIME_DESC = new SortingField("find_time", "desc");

    /**
     * 发现时间
     */
    @ApiModelProperty(value = "查询时间", example = "2021-06-06")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date findTime;

     /**
     * 排序字段数组
     */
    @ApiModelProperty(hidden = true)
    private List<SortingField> sorts;
}
